{"ast":null,"code":"import _defineProperty from \"/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/@babel/runtime/helpers/esm/defineProperty.js\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nvar _excluded = [\"className\", \"icon\", \"open\", \"openIcon\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport { unstable_composeClasses as composeClasses } from '@mui/base';\nimport styled from '../styles/styled';\nimport useThemeProps from '../styles/useThemeProps';\nimport AddIcon from '../internal/svg-icons/Add';\nimport speedDialIconClasses, { getSpeedDialIconUtilityClass } from './speedDialIconClasses';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nvar useUtilityClasses = function useUtilityClasses(ownerState) {\n  var classes = ownerState.classes,\n    open = ownerState.open,\n    openIcon = ownerState.openIcon;\n  var slots = {\n    root: ['root'],\n    icon: ['icon', open && 'iconOpen', openIcon && open && 'iconWithOpenIconOpen'],\n    openIcon: ['openIcon', open && 'openIconOpen']\n  };\n  return composeClasses(slots, getSpeedDialIconUtilityClass, classes);\n};\nvar SpeedDialIconRoot = styled('span', {\n  name: 'MuiSpeedDialIcon',\n  slot: 'Root',\n  overridesResolver: function overridesResolver(props, styles) {\n    var ownerState = props.ownerState;\n    return [_defineProperty({}, \"& .\".concat(speedDialIconClasses.icon), styles.icon), _defineProperty({}, \"& .\".concat(speedDialIconClasses.icon), ownerState.open && styles.iconOpen), _defineProperty({}, \"& .\".concat(speedDialIconClasses.icon), ownerState.open && ownerState.openIcon && styles.iconWithOpenIconOpen), _defineProperty({}, \"& .\".concat(speedDialIconClasses.openIcon), styles.openIcon), _defineProperty({}, \"& .\".concat(speedDialIconClasses.openIcon), ownerState.open && styles.openIconOpen), styles.root];\n  }\n})(function (_ref6) {\n  var _ref7;\n  var theme = _ref6.theme,\n    ownerState = _ref6.ownerState;\n  return _ref7 = {\n    height: 24\n  }, _defineProperty(_ref7, \"& .\".concat(speedDialIconClasses.icon), _extends({\n    transition: theme.transitions.create(['transform', 'opacity'], {\n      duration: theme.transitions.duration.short\n    })\n  }, ownerState.open && _extends({\n    transform: 'rotate(45deg)'\n  }, ownerState.openIcon && {\n    opacity: 0\n  }))), _defineProperty(_ref7, \"& .\".concat(speedDialIconClasses.openIcon), _extends({\n    position: 'absolute',\n    transition: theme.transitions.create(['transform', 'opacity'], {\n      duration: theme.transitions.duration.short\n    }),\n    opacity: 0,\n    transform: 'rotate(-45deg)'\n  }, ownerState.open && {\n    transform: 'rotate(0deg)',\n    opacity: 1\n  })), _ref7;\n});\nvar SpeedDialIcon = /*#__PURE__*/React.forwardRef(function SpeedDialIcon(inProps, ref) {\n  var props = useThemeProps({\n    props: inProps,\n    name: 'MuiSpeedDialIcon'\n  });\n  var className = props.className,\n    iconProp = props.icon,\n    openIconProp = props.openIcon,\n    other = _objectWithoutPropertiesLoose(props, _excluded);\n  var ownerState = props;\n  var classes = useUtilityClasses(ownerState);\n  function formatIcon(icon, newClassName) {\n    if ( /*#__PURE__*/React.isValidElement(icon)) {\n      return /*#__PURE__*/React.cloneElement(icon, {\n        className: newClassName\n      });\n    }\n    return icon;\n  }\n  return /*#__PURE__*/_jsxs(SpeedDialIconRoot, _extends({\n    className: clsx(classes.root, className),\n    ref: ref,\n    ownerState: ownerState\n  }, other, {\n    children: [openIconProp ? formatIcon(openIconProp, classes.openIcon) : null, iconProp ? formatIcon(iconProp, classes.icon) : /*#__PURE__*/_jsx(AddIcon, {\n      className: classes.icon\n    })]\n  }));\n});\nprocess.env.NODE_ENV !== \"production\" ? SpeedDialIcon.propTypes\n/* remove-proptypes */ = {\n  // ----------------------------- Warning --------------------------------\n  // | These PropTypes are generated from the TypeScript type definitions |\n  // |     To update them edit the d.ts file and run \"yarn proptypes\"     |\n  // ----------------------------------------------------------------------\n\n  /**\n   * Override or extend the styles applied to the component.\n   */\n  classes: PropTypes.object,\n  /**\n   * @ignore\n   */\n  className: PropTypes.string,\n  /**\n   * The icon to display.\n   */\n  icon: PropTypes.node,\n  /**\n   * @ignore\n   * If `true`, the component is shown.\n   */\n  open: PropTypes.bool,\n  /**\n   * The icon to display in the SpeedDial Floating Action Button when the SpeedDial is open.\n   */\n  openIcon: PropTypes.node,\n  /**\n   * The system prop that allows defining system overrides as well as additional CSS styles.\n   */\n  sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\nSpeedDialIcon.muiName = 'SpeedDialIcon';\nexport default SpeedDialIcon;","map":{"version":3,"names":["_objectWithoutPropertiesLoose","_extends","_excluded","React","PropTypes","clsx","unstable_composeClasses","composeClasses","styled","useThemeProps","AddIcon","speedDialIconClasses","getSpeedDialIconUtilityClass","jsx","_jsx","jsxs","_jsxs","useUtilityClasses","ownerState","classes","open","openIcon","slots","root","icon","SpeedDialIconRoot","name","slot","overridesResolver","props","styles","iconOpen","iconWithOpenIconOpen","openIconOpen","theme","height","transition","transitions","create","duration","short","transform","opacity","position","SpeedDialIcon","forwardRef","inProps","ref","className","iconProp","openIconProp","other","formatIcon","newClassName","isValidElement","cloneElement","children","process","env","NODE_ENV","propTypes","object","string","node","bool","sx","oneOfType","arrayOf","func","muiName"],"sources":["/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/@mui/material/esm/SpeedDialIcon/SpeedDialIcon.js"],"sourcesContent":["import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"className\", \"icon\", \"open\", \"openIcon\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport { unstable_composeClasses as composeClasses } from '@mui/base';\nimport styled from '../styles/styled';\nimport useThemeProps from '../styles/useThemeProps';\nimport AddIcon from '../internal/svg-icons/Add';\nimport speedDialIconClasses, { getSpeedDialIconUtilityClass } from './speedDialIconClasses';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\n\nconst useUtilityClasses = ownerState => {\n  const {\n    classes,\n    open,\n    openIcon\n  } = ownerState;\n  const slots = {\n    root: ['root'],\n    icon: ['icon', open && 'iconOpen', openIcon && open && 'iconWithOpenIconOpen'],\n    openIcon: ['openIcon', open && 'openIconOpen']\n  };\n  return composeClasses(slots, getSpeedDialIconUtilityClass, classes);\n};\n\nconst SpeedDialIconRoot = styled('span', {\n  name: 'MuiSpeedDialIcon',\n  slot: 'Root',\n  overridesResolver: (props, styles) => {\n    const {\n      ownerState\n    } = props;\n    return [{\n      [`& .${speedDialIconClasses.icon}`]: styles.icon\n    }, {\n      [`& .${speedDialIconClasses.icon}`]: ownerState.open && styles.iconOpen\n    }, {\n      [`& .${speedDialIconClasses.icon}`]: ownerState.open && ownerState.openIcon && styles.iconWithOpenIconOpen\n    }, {\n      [`& .${speedDialIconClasses.openIcon}`]: styles.openIcon\n    }, {\n      [`& .${speedDialIconClasses.openIcon}`]: ownerState.open && styles.openIconOpen\n    }, styles.root];\n  }\n})(({\n  theme,\n  ownerState\n}) => ({\n  height: 24,\n  [`& .${speedDialIconClasses.icon}`]: _extends({\n    transition: theme.transitions.create(['transform', 'opacity'], {\n      duration: theme.transitions.duration.short\n    })\n  }, ownerState.open && _extends({\n    transform: 'rotate(45deg)'\n  }, ownerState.openIcon && {\n    opacity: 0\n  })),\n  [`& .${speedDialIconClasses.openIcon}`]: _extends({\n    position: 'absolute',\n    transition: theme.transitions.create(['transform', 'opacity'], {\n      duration: theme.transitions.duration.short\n    }),\n    opacity: 0,\n    transform: 'rotate(-45deg)'\n  }, ownerState.open && {\n    transform: 'rotate(0deg)',\n    opacity: 1\n  })\n}));\nconst SpeedDialIcon = /*#__PURE__*/React.forwardRef(function SpeedDialIcon(inProps, ref) {\n  const props = useThemeProps({\n    props: inProps,\n    name: 'MuiSpeedDialIcon'\n  });\n\n  const {\n    className,\n    icon: iconProp,\n    openIcon: openIconProp\n  } = props,\n        other = _objectWithoutPropertiesLoose(props, _excluded);\n\n  const ownerState = props;\n  const classes = useUtilityClasses(ownerState);\n\n  function formatIcon(icon, newClassName) {\n    if ( /*#__PURE__*/React.isValidElement(icon)) {\n      return /*#__PURE__*/React.cloneElement(icon, {\n        className: newClassName\n      });\n    }\n\n    return icon;\n  }\n\n  return /*#__PURE__*/_jsxs(SpeedDialIconRoot, _extends({\n    className: clsx(classes.root, className),\n    ref: ref,\n    ownerState: ownerState\n  }, other, {\n    children: [openIconProp ? formatIcon(openIconProp, classes.openIcon) : null, iconProp ? formatIcon(iconProp, classes.icon) : /*#__PURE__*/_jsx(AddIcon, {\n      className: classes.icon\n    })]\n  }));\n});\nprocess.env.NODE_ENV !== \"production\" ? SpeedDialIcon.propTypes\n/* remove-proptypes */\n= {\n  // ----------------------------- Warning --------------------------------\n  // | These PropTypes are generated from the TypeScript type definitions |\n  // |     To update them edit the d.ts file and run \"yarn proptypes\"     |\n  // ----------------------------------------------------------------------\n\n  /**\n   * Override or extend the styles applied to the component.\n   */\n  classes: PropTypes.object,\n\n  /**\n   * @ignore\n   */\n  className: PropTypes.string,\n\n  /**\n   * The icon to display.\n   */\n  icon: PropTypes.node,\n\n  /**\n   * @ignore\n   * If `true`, the component is shown.\n   */\n  open: PropTypes.bool,\n\n  /**\n   * The icon to display in the SpeedDial Floating Action Button when the SpeedDial is open.\n   */\n  openIcon: PropTypes.node,\n\n  /**\n   * The system prop that allows defining system overrides as well as additional CSS styles.\n   */\n  sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\nSpeedDialIcon.muiName = 'SpeedDialIcon';\nexport default SpeedDialIcon;"],"mappings":";AAAA,OAAOA,6BAA6B,MAAM,yDAAyD;AACnG,OAAOC,QAA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